/*  1:   */ package org.jetbrains.jps.model.module.impl;
/*  2:   */ 
/*  3:   */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.jps.model.JpsElementChildRole;
import org.jetbrains.jps.model.JpsEventDispatcher;
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
import org.jetbrains.jps.model.ex.JpsElementCollectionRole;
import org.jetbrains.jps.model.module.JpsModule;
import org.jetbrains.jps.model.module.JpsModuleListener;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class JpsModuleRole
/* 12:   */   extends JpsElementChildRoleBase<JpsModule>
/* 13:   */ {
/* 14:30 */   private static final JpsElementChildRole<JpsModule> a = new JpsModuleRole();
/* 15:31 */   public static final JpsElementCollectionRole<JpsModule> MODULE_COLLECTION_ROLE = JpsElementCollectionRole.create(a);
/* 16:   */   
/* 17:   */   private JpsModuleRole()
/* 18:   */   {
/* 19:34 */     super("module");
/* 20:   */   }
/* 21:   */   
/* 22:   */   public void fireElementAdded(@NotNull JpsEventDispatcher paramJpsEventDispatcher, @NotNull JpsModule paramJpsModule)
/* 23:   */   {
/* 24:39 */     if (paramJpsEventDispatcher == null) {
/* 25:39 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/module/impl/JpsModuleRole", "fireElementAdded" }));
/* 26:   */     }
/* 27:39 */     if (paramJpsModule == null) {
/* 28:39 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/module/impl/JpsModuleRole", "fireElementAdded" }));
/* 29:   */     }
/* 30:39 */     ((JpsModuleListener)paramJpsEventDispatcher.getPublisher(JpsModuleListener.class)).moduleAdded(paramJpsModule);
/* 31:   */   }
/* 32:   */   
/* 33:   */   public void fireElementRemoved(@NotNull JpsEventDispatcher paramJpsEventDispatcher, @NotNull JpsModule paramJpsModule)
/* 34:   */   {
/* 35:44 */     if (paramJpsEventDispatcher == null) {
/* 36:44 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/jps/model/module/impl/JpsModuleRole", "fireElementRemoved" }));
/* 37:   */     }
/* 38:44 */     if (paramJpsModule == null) {
/* 39:44 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/jetbrains/jps/model/module/impl/JpsModuleRole", "fireElementRemoved" }));
/* 40:   */     }
/* 41:44 */     ((JpsModuleListener)paramJpsEventDispatcher.getPublisher(JpsModuleListener.class)).moduleRemoved(paramJpsModule);
/* 42:   */   }
/* 43:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.jps.model.module.impl.JpsModuleRole

 * JD-Core Version:    0.7.0.1

 */